#include<stdio.h>

int main()
{
    int n, k=0;  //k用来计数
    int sum = 0;
    scanf("%d", &n);
    while(n/10 != 0)
    {
        k += 1;
        sum += n%10;
        n = n/10;
    }
    k += 1;
    sum += n;
    printf("%d %d",k, sum);

    return 0;
}